//
//  UIScrollView+RxExtection.swift
//  YKSwiftRxExtection
//
//  Created by edward on 2022/2/1.
//

import UIKit
import RxSwift
import RxCocoa

extension Reactive where Base: UIScrollView {
    
    public func contentSize() -> Binder<CGSize> {
        Binder(self.base) { scrollView, size in
            scrollView.contentSize = size
        }
    }
    
    public func contentInset() -> Binder<UIEdgeInsets> {
        Binder(self.base) { scrollView, inset in
            scrollView.contentInset = inset
        }
    }
}
